package mydesign.chapters02_observer.v1.Observer;

public class ZhangsanSubscriber implements Subscriber{


    @Override
    public void updateInfo(String info) {
        System.out.println("张三收到报纸信息:"+info);
    }

    @Override
    public String toString() {
        return "zhangsan";
    }
}
